#include<stdio.h>
int main()
{
   int i,n,f;
   
   scanf("%d", &n);

   i = 2;
   f = 1;

   while (i <= n) {
      f *= i;
      i++;
      printf("%d\n", i);
}

printf("%d\n", f);

return 0;
}
